/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

/* Mint UI style parity: swatches, preloader, and mobile tweaks */
/* Overlay panel positioning */
.mint-ui-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.mint-ui-panel.right {
    right: 24px;
    left: auto;
    top: 24px;
    bottom: 24px;
    width: min(380px, 36%);
    padding: 18px 18px 22px;
    background: #ffffff;
    overflow: hidden;
}

.mint-card {
    border-radius: 12px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.mint-ui-header { margin-bottom: 14px; }
.mint-ui-header .brand { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; color: #7b7b7b; text-transform: uppercase; }
.mint-ui-header .product { font-weight: 700; font-size: 20px; color: #222222; }

.mint-ui-section { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; overflow: auto; }
.mint-ui-section details + details { margin-top: 2px; }

.mint-section-label { font-size: 12px; color: #6b6b6b; margin: 10px 0; }

.mint-dropdown { position: relative; display: block; padding: 12px 36px 12px 14px; border: 1px solid #e5e5e5; border-radius: 10px; background: #ffffff; cursor: pointer; }
.mint-dropdown .title { font-weight: 600; font-size: 13px; color: #222; }
.mint-dropdown .selected { font-size: 11px; color: #888; }
.mint-dropdown::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #222; transition: transform 0.2s ease; }
details[open] > .mint-dropdown::after { transform: translateY(-50%) rotate(180deg); }

.mint-ui-panel .swatch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 2px;
}

.mint-ui-panel .swatch {
    border: 1px solid #a89898;
    border-radius: 16px;
    padding: 6px 12px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    cursor: pointer;
}

.mint-ui-panel .swatch:hover {
    border-color: #333333;
}

.mint-footer { margin-top: auto; }
.mint-cta { width: 100%; border: none; border-radius: 10px; background: #2d2d2d; color: #fff; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.mint-cta:hover { background: #000; }

/* Swatch dropdown styles */
.swatch-wrapper summary::-webkit-details-marker { display: none; }
.swatch-wrapper summary { list-style: none; }

/* Mobile enhancements: dividers and caret indicator */
@media (max-width: 600px) {
    .mint-ui-panel.right {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        background: rgba(255,255,255,0.95);
        padding: 12px 12px 16px;
        border-radius: 12px 12px 0 0;
    }

    .swatch-wrapper {
        width: 100%;
        border-bottom: 1px solid #a89898;
        padding-bottom: 6px;
        margin-bottom: 8px;
    }

    .swatch-wrapper:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Make dropdown header wrap nicely on small screens */
    .swatch-wrapper summary { display: block; padding: 0; }
    .mint-dropdown { padding: 12px 36px 12px 12px; line-height: 1.35; white-space: normal; }
    .mint-dropdown .title, .mint-dropdown .selected { white-space: normal; }
    .mint-dropdown::after { right: 12px; top: 14px; transform: none; }
    details[open] > .mint-dropdown::after { transform: rotate(180deg); top: 14px; }

    .mint-ui-section { gap: 10px; }
    .mint-ui-panel .swatch-options { gap: 10px; padding-top: 8px; }
    .mint-ui-panel .swatch { padding: 8px 12px; border-radius: 18px; }
}

/* Preloader visuals to match Mint */
.v3d-simple-preloader-logo {
    background-image: url('media/logo.jpg');
}

.v3d-simple-preloader-container {
    --v3d-preloader-img-width: 200px;
    --v3d-preloader-img-height: 75px;
}

.v3d-simple-preloader-bar {
    background: #000000;
    height: 3px;
    border-color: #2b70c7;
}
